<!-- Name Field -->
<div class="form-group col-sm-6">
    {!! Form::label('name', '名称:') !!}
    {!! Form::text('name', null, ['class' => 'form-control']) !!}
</div>

<!-- User Id Field -->
{{--<div class="form-group col-sm-6">--}}
    {{--{!! Form::label('user_id', 'User Id:') !!}--}}
    {{--{!! Form::text('user_id', null, ['class' => 'form-control']) !!}--}}
{{--</div>--}}

<!-- Distribute Id Field -->
{{--<div class="form-group col-sm-6">--}}
    {{--{!! Form::label('distribute_id', 'Distribute Id:') !!}--}}
    {{--{!! Form::text('distribute_id', null, ['class' => 'form-control']) !!}--}}
{{--</div>--}}

<!-- Money Field -->
<div class="form-group col-sm-6">
    {!! Form::label('money', '优惠金额:') !!}
    {!! Form::text('money', null, ['class' => 'form-control']) !!}
</div>

<!-- Type Field -->
<div class="form-group col-sm-6">
    {!! Form::label('type', '类型:') !!}
    {!! Form::select('type', ['1' => '满减优惠券', '2' => '无限制优惠券'], null, ['class' => 'form-control']) !!}
</div>

<!-- Min Amount Field -->
<div class="form-group col-sm-6">
    {!! Form::label('min_amount', '允许使用所需最小金额:') !!}
    {!! Form::text('min_amount', null, ['class' => 'form-control']) !!}
</div>

<!-- Max Amount Field -->
{{--<div class="form-group col-sm-6">--}}
    {{--{!! Form::label('max_amount', 'Max Amount:') !!}--}}
    {{--{!! Form::text('max_amount', null, ['class' => 'form-control']) !!}--}}
{{--</div>--}}

<!-- Send Start Date Field -->
<div class="form-group col-sm-6">
    {!! Form::label('send_start_date', '允许发放开始时间:') !!}
    {!! Form::text('send_start_date', isset($bonus)?$bonus->send_start_date:date('Y-m-d H:i:s'), ['class' => 'form-control']) !!}
</div>

<!-- Send End Date Field -->
<div class="form-group col-sm-6">
    {!! Form::label('send_end_date', '允许发放结束时间:') !!}
    {!! Form::text('send_end_date', isset($bonus)?$bonus->send_start_date:date('Y-m-d H:i:s',time()+3600*24*3), ['class' => 'form-control']) !!}
</div>

<!-- Use Start Date Field -->
<div class="form-group col-sm-6">
    {!! Form::label('use_start_date', '允许使用开始时间:') !!}
    {!! Form::text('use_start_date', isset($bonus)?$bonus->send_start_date:date('Y-m-d H:i:s'), ['class' => 'form-control']) !!}
</div>

<!-- Use End Date Field -->
<div class="form-group col-sm-6">
    {!! Form::label('use_end_date', '允许使用结束时间:') !!}
    {!! Form::text('use_end_date', isset($bonus)?$bonus->send_start_date:date('Y-m-d H:i:s',time()+3600*24*3), ['class' => 'form-control']) !!}
</div>
@if(!isset($bonus))
    <div class="form-group col-sm-6">
        {!! Form::label('number', '创建数量:') !!}
        {!! Form::number('number', 1, ['class' => 'form-control']) !!}
    </div>
@endif

<!-- Use Date Field -->
{{--<div class="form-group col-sm-6">--}}
    {{--{!! Form::label('use_date', '使用时间:') !!}--}}
    {{--{!! Form::text('use_date', null, ['class' => 'form-control']) !!}--}}
{{--</div>--}}

<!-- Use Status Field -->
{{--<div class="form-group col-sm-6">--}}
    {{--{!! Form::label('use_status', '使用状态:') !!}--}}
    {{--{!! Form::select('use_status', ['0' => '未使用', '1' => '已使用'], null, ['class' => 'form-control']) !!}--}}
{{--</div>--}}Bon

<!-- Submit Field -->
<div class="form-group col-sm-12">
    {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
    <a href="{!! route('bonuses.index') !!}" class="btn btn-default">Cancel</a>
</div>
